package com.liu.springmvc.view;

import java.io.File;
import java.util.Map;

/**
 * @author LIU
 * @version 1.0
 * @date 2024/5/16 17:43
 * @description TODO
 */

public class ModelAndView {
    private  String viewName;

    private Map<String ,?> model;

    public ModelAndView(String viewName) {
        this.viewName = viewName;
    }

    public ModelAndView(String viewName, Map<String, ?> model) {
        this.viewName = viewName;
        this.model = model;
    }

    public String getViewName() {
        return viewName;
    }

    public Map<String, ?> getModel() {
        return model;
    }
}
